<?php
global $base_dir;
$base_dir='../../';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
include_once("index_inc.php");
include_once("func/function.php");
include_once($base_dir."inc/manage.php");			//后台通用包含文件
?>
<?php
//接收参数
if(is_array($_GET))
{
	foreach($_GET as $key => $value)
	{
		$$key=$value;
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$lanmu_name?>-后台管理系统</title>
<link href="../../style/common.css" rel="stylesheet" type="text/css" />
<script src="../../js/checkform.js" type="text/javascript"></script>
</head>
<body>
<?php
$t=new Tbl_Act($tbl_name,$tbl_key);		//创建表对象
$t->$tbl_key=$_GET['id'];
$t->GetOne(array($tbl_key.',='));
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="lanmu_table">
  <tr>
    <td height="30" valign="bottom"><a href="<?=$url_list?>"><span class="lanmu_title"><?=$lanmu_name?></span></a><span class="lanmu_title2">&nbsp;&gt;&nbsp;查看</span></td>
  </tr>
</table>
<form action="<?=$url_act?>" method="post" name="search" enctype="multipart/form-data" onsubmit="return checkform();">
  <table width="600" border="0" cellspacing="1" class="margintop30">
  <tr>
		<td width="114" height="25" align="right" class="title01">用户名:</td>
		<td class="list_content1"><label><?=$t->mem_name?>
		&nbsp;&nbsp;</label></td>
	  </tr>  
	  <tr>
	  	<td height="25" align="right" class="title01">会员类型:</td>
	  	<td class="list_content1">
	  		<select name="mem_typeid" id="mem_typeid" disabled="disabled">
			<option value="">请选择</option>
			<?=getMemTypeList();?>
  			</select>
		<script language="javascript">setSelect_selected("<?=$t->mem_typeid?>","mem_typeid");</script>	
	  		</td>
  	</tr>
	  <tr>
	  <td width="114" height="25" align="right" class="title01">公司名称:</td>
	  <td class="list_content1"><?=$t->companyname?></td>
	  </tr>  <tr>
		<td width="114" height="25" align="right" class="title01">联系电话:</td>
		<td class="list_content1"><?=$t->phone?></td>
	  </tr>  <tr>
		<td width="114" height="25" align="right" class="title01">联系人:</td>
		<td class="list_content1"><?=$t->contact?></td>
	  </tr>  <tr>
		<td width="114" height="25" align="right" class="title01">传真:</td>
		<td class="list_content1"><?=$t->fax?></td>
	  </tr>  <tr>
		<td width="114" height="25" align="right" class="title01">公司地址:</td>
		<td class="list_content1"><?=$t->companyaddr?></td>
	  </tr>  <tr>
		<td width="114" height="25" align="right" class="title01">电子邮箱:</td>
		<td class="list_content1"><?=$t->email?></td>
	  </tr>  
	  <tr>
        <td height="25" align="right" class="title01">所在城市:</td>
	    <td class="list_content1"><?=$t->companyCity?></td>
    </tr>  
	  <tr>
		<td width="114" height="25" align="right" class="title01">备注:</td>
		<td class="list_content1"><?=$t->beizhu?></td>
	  </tr>  
	  <tr>
        <td height="25" align="right" class="title01">是否为诚信会员:</td>
	    <td class="list_content1"><?=$t->mem_isreputation=='1'?'是':'否'?></td>
    </tr>  
	  <tr>
	  	<td height="25" align="right" class="title01">注册日期:</td>
	  	<td class="list_content1"><?=date("Y-m-d",$t->createtime)?></td>
  	</tr>
	  <tr>
	  	<td height="25" align="right" class="title01">上次登录IP:</td>
	  	<td class="list_content1"><?=$t->lastloginip?></td>
  	</tr>
	  <tr>
	  	<td height="25" align="right" class="title01">上次登录日期:</td>
	  	<td class="list_content1"><?=date("Y-m-d H:i:s",$t->lastlogintime)?></td>
  	</tr>
	  <tr>
		<td width="114" height="25" align="right" class="title01">预存款:</td>
		<td class="list_content1"><label><?=$t->mem_money?> 元</label>
			<a href="yck_act.php?id=<?=$id?>"></a></td>
	    </tr>
    <tr>
      <td height="25" colspan="2" align="center" class="list_content1">&nbsp;</td>
    </tr>
  </table>
</form>
<script language="javascript" src="../../../javascript/city/cityinfo.js"></script>
<script language="javascript">
/**
* 清理下拉列表
* @param objid	对象id
* @param num	保留对象数量
*/
function clearSelect(objid,num)
{
	var obj;
	obj=document.getElementById(objid);
	obj.length=num;
}
//省
function setProvince()
{
	aryProvince=getProvince();
	province_len=aryProvince.length;
	obj=document.getElementById('province');
	for(var i=0,j=1;i<province_len;i++,j++)
	{
		obj.options[j]=new Option(aryProvince[i]['name'],aryProvince[i]['code']);
	}
}
//市
function setCity(pid)
{
	clearSelect('city',1);	//清理city列表
	clearSelect('area',1);	//清理area列表
	aryCity=getCity(pid);
	city_len=aryCity.length;
	obj=document.getElementById('city');
	obj_len=obj.length;
	for(var i=0,j=1;i<city_len;i++,j++)
	{
		obj.options[j]=new Option(aryCity[i]['name'],aryCity[i]['code']);
	}
}
//县
function setArea(cid)
{
	clearSelect('area',1);	//清理area列表
	aryArea=getArea(cid);
	area_len=aryArea.length;
	obj=document.getElementById('area');
	obj_len=obj.length;
	for(var i=0,j=1;i<city_len;i++,j++)
	{
		obj.options[j]=new Option(aryArea[i]['name'],aryArea[i]['code']);
	}
}
setProvince();
</script>
<?
if($t->mem_province!='')
{
	echo '<script language="javascript">setSelect_selected("'.$t->mem_province.'","mem_province");setCity("'.$t->mem_province.'")</script>';
}
?>
<?
if($t->mem_city!='')
{
	echo '<script language="javascript">setSelect_selected("'.$t->mem_city.'","mem_city");setArea("'.$t->mem_city.'")</script>';
}
if($t->mem_area!='')
{
	echo '<script language="javascript">setSelect_selected("'.$t->mem_area.'","area");</script>';
}
?>

<!-- 城市二级分类结束 -->
<!-- 7caihu.com Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");

document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fb8797ecb21d1ccb839c35b190277a0cd' type='text/javascript'%3E%3C/script%3E"));

</script>
</body>
</html>
<?php
include_once($base_dir."inc/inc_unconnect.php")
?>